import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/components/Index/Index'
import StaffManagerIndex from '@/components/StaffManager/Index'
import CartManagerIndex from '@/components/CartManager/Index'
import GoodsManagerIndex from '@/components/GoodsManager/Index'
import OrderManagerIndex from '@/components/OrderManager/Index'
import GoodsInfos from '@/components/GoodsManager/GoodsInfos/Infos'
import Login from '@/components/StaffManager/Login/Login'
import Regist from '@/components/StaffManager/Regist/Regist'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index
    },
    {
      path:'/StaffManager/StaffManagerIndex',
      name:'StaffManagerIndex',
      component:StaffManagerIndex
    },
    {
      path:'/CartManager/CartManagerIndex',
      name:'CartManagerIndex',
      component:CartManagerIndex
    },
    {
      path:'/GoodsManager/GoodsManagerIndex',
      name:'GoodsManagerIndex',
      component:GoodsManagerIndex
    },
    {
      path:'/OrderManager/OrderManagerIndex',
      name:'OrderManagerIndex',
      component:OrderManagerIndex
    },
    {
      path:'/GoodsManager/GoodsInfos/GoodsInfos',
      name:'GoodsInfos',
      component:GoodsInfos
    },
    {
      path:'/StaffManager/Login/Login',
      name:'Login',
      component:Login
    },
    {
      path:'/StaffManager/Regist/Regist',
      name:'Regist',
      component:Regist
    }
  ]
})
